<?php

namespace App\Http\Controllers;

use App\Datatables;
use Illuminate\Http\Request;

/**
 * Class ActivitiesController
 * @package App\Http\Controllers
 */
class ActivitiesController extends Controller
{
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('auth');
    }


    /**
     * 2018中秋节
     * @param Request $request
     */
    public function autumn2018(Request $request)
    {
        if ($request->isMethod('post')) {
            return response()->json(Datatables::Autumn2018());
        }

        return view('activities.autumn2018');
    }
}
